package com.xinchuang;

import com.xinchuang.service.apiutil.ApiUtilService;
import lombok.RequiredArgsConstructor;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * TODO
 *
 * @author zkwczx
 * @version 1.0
 * @date 2023/12/21 10:28
 */
@Component
@RequiredArgsConstructor
public class ApiRunner implements ApplicationRunner {

    private final ApiUtilService apiUtilService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        apiUtilService.getOaSystemUnitAndUser();
    }

}
